package com.tfswx.jkgl.designer.config;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * @author Ricky
 * @date 2020/12/23
 */
@Slf4j
@Data
@Component
@PropertySource(value = {"classpath:bbinfo.properties"}, ignoreResourceNotFound = true)
@ConfigurationProperties(prefix = "bbinfo")
public class BbinfoConfig {
    private String version;
    private String fbsj;
    private String dbsj;
    private String bbid;

    @PostConstruct
    void init() {
        log.info("\n项目版本-{}\n打包时间-{}\n版本标识-{}\n提交时间-{}", version, dbsj, bbid, fbsj);
    }
}
